builtins_libs =

include $(srcdir)/builtins.am

AM_CPPFLAGS += -DDEBUG_NAMESPACE='"libggi"' -DBUILDING_LIBGGI
INCLUDES  = -I$(top_srcdir)/include

libggi_la_LIBADD = $(builtins_libs) -lgg
lib_LTLIBRARIES = libggi.la

libggi_la_SOURCES = builtins.c colormap.c db.c dl.c ext.c \
	gc.c init.c internal.c mode.c stubs.c swar.c \
	visual.c
BUILT_SOURCES = $(top_builddir)/ggi/builtins.inc
libggi_la_LDFLAGS = $(AM_LDFLAGS) $(extra_libraries) -version-info 3:0:0 \
	-no-undefined -export-symbols $(srcdir)/EXPSYMS
EXTRA_DIST = EXPSYMS swar.h

MOSTLYCLEANFILES = builtins.inc
MAINTAINERCLEANFILES = Makefile.in

$(top_builddir)/ggi/builtins.inc: $(top_srcdir)/libggi.conf.in
	SED=$(SED) $(srcdir)/genconf.sh $(top_srcdir) libggi.conf.in $(OS) >$@
